/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-12<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.service.dbinfo;

import cn.cnsy123.bookwebsiteserver.entity.SysDataBaseInfo;
import cn.cnsy123.bookwebsiteserver.param.DbConfigInsertParam;
import cn.cnsy123.bookwebsiteserver.param.DbConfigUpdateParam;
import cn.cnsy123.bookwebsiteserver.vo.layui.CommonResult;
import cn.cnsy123.bookwebsiteserver.vo.layui.TableResult;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-12<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
public interface DbInfoService {

    /**
     * Description:一些注释<br/>
     * CreateTime:2019-04-12<br/>
     * Creater: yangpengfei360@126.com <br/>
     * @author yangpengfei
     * @param intValue
     * @param intValue2
     * @return
     */
    TableResult<SysDataBaseInfo> findAllDbInfo(int page, int size);

    /**
     * Description:删除数据源信息<br/>
     * CreateTime:2019-04-15<br/>
     * Creater: yangpengfei360@126.com <br/>
     * @author yangpengfei
     * @param dbInfoId
     * @return
     */
    CommonResult<Object> deleteDbConfigInfo(Long dbInfoId);

    /**
     * Description:更新数据源信息<br/>
     * CreateTime:2019-04-15<br/>
     * Creater: yangpengfei360@126.com <br/>
     * @author yangpengfei
     * @param param
     * @return
     */
    CommonResult<Object> updateDbConfigInfo(DbConfigUpdateParam param);

    /**
     * Description:新增数据<br/>
     * CreateTime:2019-04-15<br/>
     * Creater: yangpengfei360@126.com <br/>
     * @author yangpengfei
     * @param param
     * @return
     */
    CommonResult<Object> insertDbConfigInfo(DbConfigInsertParam param);

}
